<template>
  <div>
    <div>
      <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
        <van-swipe-item>1</van-swipe-item>
        <van-swipe-item>2</van-swipe-item>
        <van-swipe-item>3</van-swipe-item>
        <van-swipe-item>4</van-swipe-item>
      </van-swipe>
    </div>
    <div>
      <van-tabs v-model:active="activeName" color="#1989fa">
        <van-tab title="全部订单" name="a">
          <OrderRecords></OrderRecords>
        </van-tab>
        <van-tab title="标签 2" name="b">
          <Table2></Table2>
        </van-tab>
        <van-tab title="标签 3" name="c">
          <Table3></Table3>
        </van-tab>
      </van-tabs>
    </div>
  </div>
</template>

<script lang="ts" setup> 
import { onMounted, ref } from 'vue';  
import OrderRecords from './orderRecords.vue';  
import Table2 from './table2.vue';  
import Table3 from './table3.vue';  
const activeName = ref('a');
  
onMounted(() => { 
}) 
</script>

<style lang="scss" scoped>
  .my-swipe .van-swipe-item {
    color: #fff;
    font-size: 20px;
    line-height: 150px;
    text-align: center;
    background-color: #39a9ed;
  }
</style>
